package com.caipiao.mapper;

import com.caipiao.pojo.SMobileCode;

import java.util.Map;

public interface SMobileCodeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SMobileCode record);

    int insertSelective(SMobileCode record);

    SMobileCode selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SMobileCode record);

    int updateByPrimaryKey(SMobileCode record);
    //根据手机查验证码
    SMobileCode selectCodeByMobile(String mobile);
    //短信发送次数
    Integer selectMobileCodeCount(Map<String,Object> map);
    //清空短信表
    void deleteMobileCode();
}